Skip to content

can reflect observers#23797

Open
mockersf wants to merge 3 commits intobevyengine:mainfrom
mockersf:can-reflect-observer
Open

can reflect observers#23797
mockersf wants to merge 3 commits intobevyengine:mainfrom
mockersf:can-reflect-observer

Conversation

@mockersf
Copy link
Copy Markdown
Member

Objective

  • Reflect observers so that I can observe my reflection

Solution

  • Reflect observers

Testing

  • CI (and followup PR)

@mockersf mockersf added A-ECS Entities, components, systems, and events A-Reflection Runtime information about types labels Apr 14, 2026
@github-project-automation github-project-automation bot moved this to Needs SME Triage in Reflection Apr 14, 2026
@github-project-automation github-project-automation bot moved this to Needs SME Triage in ECS Apr 14, 2026
@alice-i-cecile alice-i-cecile added D-Trivial Nice and easy! A great choice to get started with Bevy S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Apr 14, 2026
@alice-i-cecile alice-i-cecile added X-Uncontroversial This work is generally agreed upon D-Straightforward Simple bug fixes and API improvements, docs, test and examples and removed D-Trivial Nice and easy! A great choice to get started with Bevy labels Apr 14, 2026
pub fn observe(
&self,
world: &mut World,
callback: Box<dyn Fn(&dyn PartialReflect) + Send + Sync>,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Observers normally have world access, but this signature doesn't expose it. Should this be either something like dyn Fn(&dyn PartialReflect, DeferredWorld), or a full impl IntoSystem<InRef<dyn PartialReflect>, (), M>? Changing it later would be a breaking change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ECS Entities, components, systems, and events A-Reflection Runtime information about types D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward X-Uncontroversial This work is generally agreed upon

Projects

Status: Needs SME Triage
Status: Needs SME Triage

Development

Successfully merging this pull request may close these issues.

3 participants